package com.crane.common.core.exception;


/**
 * 基本提示错误类
 *
 * @author zhenxing.pi
 */
public enum BasicErrorCode implements ErrorCode {
    /**
     * 错误基本枚举
     */
    BIZ_ERROR("BIZ_ERROR", "业务逻辑错误"),

    SYS_ERROR("SYS_ERROR", "系统错误"),

    SERVER_SUCCESS("BASE.000", "成功请求"),

    SERVER_ATTACH("BASE.001", "恶意请求"),

    PARAS_IS_NOT_NULL("BASE.004", "参数{0}不能为空"),

    ENTITY_NOT_EXISTS("BASE.002", "{0}不存在"),

    ENTITY_IS_EXISTS("BASE.003", "{0}已存在"),

    PARAS_FORMAT_ERROR("BASE.005", "参数{0}格式错误"),

    ILLEGAL_CHARACTER("BASE.006", "包含非法字符"),

    SESSION_TIMEOUT("BASE.007", "会话失效"),

    NO_DATA_RIGHT("BASE.008", "无此数据权限"),

    NO_OPERATE_RIGHT("BASE.009", "无此操作权限"),
    
    EQUIPMENT_MTO_IS_EXISTS("BASE.011","设备{0}有未处理完的维修工单"),
    
    FILE_FORMAT("BASE.012","请您换一个文件格式"),
    
    FILE_SIZE("BASE.013","请您将文件缩压后再上传"),
    
    VIDEO_FORMAT("BASE.014","请您换一个视频格式文件"),
    
    VIDEO_SIZE("BASE.015","请您将视频缩压后再上传"),
    
    IMAGE_FORMAT("BASE.016","请您换一个图片格式"),
    
    IMAGE_SIZE("BASE.017","请您将图片缩压后再上传"),
    
    MTR_ORDER_CHECK("BASE.018","请不要重复审核报修：{0}"),
    
    MTO_ORDER_EXE("BASE.019","只能执行{0}的工单"),
    
    MTR_ORDER_UPDATE("BASE.020","只有修改{0}的工单"),
    
    DEFINED_MSG("BASE.021","{0}"),
    
    NOT_PAT_ORDER("BASE.022","您有尚未支付的订单"),
    
    BALANCE_INSUFFICIENT("BASE.023","{0}账户余额不足"),
    
    WITHDRAW_MIN("BASE.024","最小提现数量为：{0}"),
    
    PAY_PWD_ERROR("BASE.025","支付密码有误"),
    
    NOT_SET_PAY_PWD("BASE.025","请您先设置支付密码"),
    
    USER_STATUS_LOCK("BASE.026","状态异常"),

    PARAM_NULL("BASE.010", "参数{0}为空");

    private final String errCode;
    private final String errDesc;

    BasicErrorCode(String errCode, String errDesc) {
        this.errCode = errCode;
        this.errDesc = errDesc;
    }

    @Override
    public String getErrCode() {
        return errCode;
    }

    @Override
    public String getErrDesc() {
        return errDesc;
    }
}
